import request from "./http"

// 获取url
export function getSongUrl(params){
    return request({
        url:"song/url",
        method:"get",
        params
    })
}

// 获取歌词
export function getSongLyric(params){
    return request({
        url:"lyric",
        method:"get",
        params
    })
}

// 获取验证码
export function getCaptcha(params){
    return request({
        url:"captcha/sent",
        method:"get",
        params
    })
}
// 验证验证码
export function getCaptchaVerify(params){
    return request({
        url:"captcha/verify",
        method:"get",
        params
    })
}

// /login/cellphone  
export function getUser(params){
    return request({
        url:"/login/cellphone",
        method:"get",
        params
    })
}

// 登录状态 /login/status
export function getStatus(){
    return request({
        url:"/login/status",
        method:"get",
    })
}

// 退出登录 /logout
export function getLogout(){
    return request({
        url:"/logout",
        method:"get"
    })
}

// 对歌单添加或删除歌曲 /playlist/tracks
export function getLike(params){
    return request({
        url:"/playlist/tracks",
        method:"get",
        params
    })
}